{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
 <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
   <!-- Main content -->
    <section class="content">
      <!-- Small boxes (Stat box) -->
      <div class="row" style="padding-right:15px;">
        <div class="col-lg-3 col-xs-6" style="padding-right:1px;">
          <div class="small-box" >
              <div class="inner" style="background-color:#fcba4b;">
                  <a href="index.php?a=resource.list">
                        <div class="icon">
                          <i class="fa fa-paste (alias)"></i>
                        </div>
                        <p class="text-center">教学资源</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- col -->
        <div class="col-lg-3 col-xs-6" style="padding-right:1px;">
          <div class="small-box" >
              <div class="inner" style="background-color:#5fb2dc;">
                  <a href="index.php?a=file.list">
                        <div class="icon">
                          <i class="fa fa-folder-open-o"></i>
                        </div>
                        <p class="text-center">文件管理器</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- col -->
        <div class="col-lg-3 col-xs-6" style="padding-right:1px;">
          <div class="small-box" >
            <div class="inner" style="background-color:#fe6568;">
                  <a href="index.php?a=score.classlist">
                        <div class="icon" style="padding-right:1px;">
                          <i class="fa fa-line-chart"></i>
                        </div>
                        <p class="text-center">成绩管理</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- ./col -->
        <div class="col-lg-3 col-xs-6" style="padding-right:1px;">
          <!-- small box -->
          <div class="small-box" >
            <div class="inner" style="background-color:#fcb53f;">
                  <a href="index.php?a=disease.add">
                        <div class="icon">
                          <i class="fa  fa-pencil"></i>
                        </div>
                        <p class="text-center">缺课登记</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- ./col -->
      </div>
      <!-- 第一行结束 -->
      <div class="row" style="padding-right:15px;">
         <div class="col-lg-2 col-xs-4" style="padding-right:1px;">
          <!-- small box -->
          <div class="small-box bg-aqua">
           <div class="inner" style="background-color:#fe6568;">
                  <a href="index.php?a=syllabus.classlist">
                        <div class="icon">
                          <i class="fa fa-file-text"></i>
                        </div>
                        <p class="text-center">课程表</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- ./col -->
        <div class="col-lg-2 col-xs-4" style="padding-right:1px;">
          <!-- small box -->
          <div class="small-box bg-green">
           <div class="inner" style="background-color:#6168fe;">
                  <a href="index.php?a=absent.add">
                        <div class="icon">
                          <i class="fa fa-exchange"></i>
                        </div>
                        <p class="text-center">代课情况</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- ./col -->
         <div class="col-lg-2 col-xs-4" style="padding-right:1px;">
          <!-- small box -->
          <div class="small-box bg-red">
          <div class="inner" style="background-color:#fe9901;">
                  <a href="index.php?a=duty.info">
                        <div class="icon">
                          <i class="fa fa-list-alt"></i>
                        </div>
                        <p class="text-center">值日表</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- ./col -->
         <div class="col-lg-2 col-xs-4" style="padding-right:1px;">
          <!-- small box -->
          <div class="small-box bg-red">
           <div class="inner" style="background-color:#37d4a7;">
                  <a href="index.php?a=main.applyadd">
                        <div class="icon">
                          <i class="fa fa-wrench"></i>
                        </div>
                        <p class="text-center">报修</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- ./col -->
         <div class="col-lg-2 col-xs-4" style="padding-right:1px;">
          <!-- small box -->
          <div class="small-box bg-red">
            <div class="inner" style="background-color:#a273ff;">
                  <a href="index.php?a=teacher.contactlist">
                        <div class="icon">
                          <i class="fa fa-phone-square"></i>
                        </div>
                        <p class="text-center">通讯录</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- ./col -->
        <div class="col-lg-2 col-xs-4" style="padding-right:1px;">
          <!-- small box -->
          <div class="small-box bg-yellow">
          <div class="inner" style="background-color:#ff6766;">
                  <a href="index.php?a=event.list">
                        <div class="icon">
                          <i class="fa  fa-list"></i>
                        </div>
                        <p class="text-center">个人备忘录</p>
                  </a>	
               </div>
           </div>
        </div>
        <!-- ./col -->
      </div>
      <!-- 上面块级链接完毕 --> 
     <!-- Main row -->
      <div class="row">
        <!-- Left col -->
        <section class="col-lg-6 connectedSortable" style="padding-right:9px;">
          <!--报修领用-->
            {%if $user_auth.user_type=='repair' or $user_auth.user_type=='shop'%}
          <div class="nav-tabs-custom">
			<span class="glyphicon glyphicon-wrench" style="float:left; font-size:18px; padding:13px 10px; color:#3c8dbc;" ></span>
                <ul class="nav nav-tabs">
                      <li class="active">
						  <a href="#tab_7" data-toggle="tab">报修  
							<span class="label label-danger">{%$main_content.count%}</span>
						  </a>
					  </li>
                      <li>
						  <a href="#tab_8" data-toggle="tab">申购  
							<span class="label label-success">{%$shop_content.count%}</span>
						  </a>
					  </li>
                      <li>
						  <a href="#tab_9" data-toggle="tab">领用  
							<span class="label label-primary">{%$goods_content.count%}</span>
						  </a>
					  </li>
                </ul>
            <div class="tab-content">
              <div class="tab-pane active" id="tab_7">
                   <table class="table">
					<!--报修-->
						{%foreach from=$main_lists key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=main.applydetails&main_id={%$value.main_id%}" class="light">{%$value.main_content%}</a></th>
                          <th width="100">{%$value.main_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
                        {%/foreach%}
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=main.applylist" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_8">
                <table class="table">
				<!--申购-->
						{%foreach from=$shop_lists key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=shops.purchasedetails&shop_id={%$value.shop_id%}" class="light">{%$value.shop_content%}</a></th>
                          <th width="100">{%$value.shop_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
						{%/foreach%}
                       
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=shops.purchaselist" class="text-muted"  style="font-size:14px;">更多>></a></p>
                  </div>
                  <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_9">
                <table class="table">
					<!--领用-->	   
						{%foreach from=$goods_lists key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=goods.goodslist" class="light">{%$value.goods_content%}</a></th>
                          <th width="100">{%$value.goods_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
						{%/foreach%}
                        
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=goods.goodslist" class="text-muted"  style="font-size:14px;">更多>></a></p>
                  </div>
              </div>
            <!-- /.tab-content -->
          </div>
         <!-- nav-tabs-custom -->
            {%/if%}
         <!--报修领用结束-->
         <div class="nav-tabs-custom">
			<span class="glyphicon glyphicon-volume-up" style="float:left; font-size:20px; padding:12px 10px; color:#3c8dbc;" ></span>
            <ul class="nav nav-tabs">
              <li class="active">
				  <a href="#tab_a" data-toggle="tab">全部  
					<span class="label label-warning">{%$inform_all_three_count.count+$inform_all_two_count.count%}</span>
				  </a>
			  </li>
              <li>
				  <a href="#tab_1" data-toggle="tab">通知   
					<span class="label label-success">{%$inform_content_one.count%}</span>
				  </a>
			  </li>
              <li>
				  <a href="#tab_2" data-toggle="tab">公示  
					<span class="label label-primary">{%$inform_content_two.count%}</span>
				  </a>
			  </li>
              <li>
				  <a href="#tab_3" data-toggle="tab">审核   
					<span class="label label-info">{%$inform_content_three.count%}</span>
				  </a>
			  </li>
            </ul>
            <div class="tab-content">
               <div class="tab-pane active" id="tab_a">
                   <table class="table">
				   <!--全部通知-->
				   {%foreach from=$inform_all_three key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=notice.presidentdetails&notice_id={%$value.notice_id%}" class="light"{%if $value.is_read ==0%}style="font-weight:bold"{%/if%}>{%$value.notice_title%}</a></th>
                          <th width="100">{%$value.department_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
					{%/foreach%}
					{%foreach from=$inform_all_two key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=notice.commondetails&notice_id={%$value.notice_id%}" class="light" {%if $value.is_read ==0%}style="font-weight:bold"{%/if%}>{%$value.notice_title%}</a></th>
                          <th width="100">{%$value.department_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
					{%/foreach%}
                       
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=inform.uplist&inform_type=1" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane " id="tab_1">
				<table class="table">
			  <!--上级通知-->
				   {%foreach from=$inform_lists_one key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=notice.presidentdetails&notice_id={%$value.notice_id%}" class="light" {%if $value.is_read ==0%}style="font-weight:bold"{%/if%}>{%$value.notice_title%}</a></th>
                          <th width="100">{%$value.department_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
					{%/foreach%}
                       
                    </table>
					<p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=inform.uplist&inform_type=1" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_2">
                <table class="table">
				<!--公告-->
				
				{%foreach from=$inform_lists_two key=key item=value%}
                        <tr>
                            <th><a href="index.php?a=notice.presidentdetails&notice_id={%$value.notice_id%}" class="light" {%if $value.is_read ==0%}style="font-weight:bold"{%/if%}>{%$value.notice_title%}</a></th>
                            <th width="100">{%$value.department_name%}</th>
                            <th width="100">{%$value.create_time%}</th>
                        </tr>
                {%/foreach%}        
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=notice.publicitylist" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_3">
			   <!--审核-->
                   <table class="table">
				   {%foreach from=$inform_lists_three key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=notice.commondetails&notice_id={%$value.notice_id%}" class="light" {%if $value.is_read ==0%}style="font-weight:bold"{%/if%}>{%$value.notice_title%}</a></th>
                          <th width="100">{%$value.department_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
				    {%/foreach%}  
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=notice.checkList" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
            </div>
            <!-- /.tab-content -->
          </div>
          <!-- nav-tabs-custom -->
          <!--通知、公告结束-->
            {%if $user_auth.user_type!='repair'%}
           <div class="nav-tabs-custom">
			<span class="glyphicon glyphicon-flag" style="float:left; font-size:18px; padding:13px 10px; color:#3c8dbc;" ></span>
                <ul class="nav nav-tabs">
                      <li class="active"><a href="#tab_m" data-toggle="tab">学生行为</a></li>
                      <li><a href="#tab_n" data-toggle="tab">班级德育</a></li>
                </ul>
            <div class="tab-content">
              <div class="tab-pane active" id="tab_m">
                   <table class="table">
                       {%foreach from=$students_lists key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=award.awardstudentlist" class="light">{%$value.award%}</a></th>
                          <th width="100">{%$value.student_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
                       {%/foreach%}
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=award.awardstudentlist" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <div class="tab-pane" id="tab_n">
                <table class="table">
                    {%foreach from=$class_lists key=key item=value%}
                    <tr>
                        <th><a href="index.php?a=award.awardclasslist" class="light">{%$value.award%}</a></th>
                        <th width="100">{%$value.class_name%}</th>
                        <th width="100">{%$value.create_time%}</th>
                    </tr>
                    {%/foreach%}
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=award.awardclasslist" class="text-muted"  style="font-size:14px;">更多>></a></p>
                  </div>
              </div>
          </div>
            {%/if%}
		  
        </section>
        <!-- 左侧部分结束 -->
		
        <!-- 右侧部分开始-->
        <section class="col-lg-6 connectedSortable" style="padding-left:7px;">
		    <div class="nav-tabs-custom">
                <span class="glyphicon glyphicon-envelope" style="float:left; font-size:20px; padding:12px 10px; color:#3c8dbc;" ></span>
				 <ul class="nav nav-tabs">
                      <li class="active"><a href="#tab_12" data-toggle="tab">事物交代   <span class="label label-warning">{%$inform_content_four%}</span></a></li>
                      <li><a href="#tab_13" data-toggle="tab">提醒   <span class="label label-success">{%$inform_content%}</span></a></li>
                      <li><a href="#tab_14" data-toggle="tab">内部邮件   <span class="label label-primary">{%$mail_content.count%}</span></a></li>
                </ul>
            <div class="tab-content">
              <div class="tab-pane active" id="tab_12">
			  <!-- 事务交代-->					
					<table class="table">
					{%foreach from=$inform_lists_four key=key item=value%}
                        <tr>
                            {%if $value.notice_id%}
                          <th><a href="index.php?a=notice.details&notice_id={%$value.notice_id%}" class="light" {%if $value.is_read ==0%}style="font-weight:bold"{%/if%}>{%$value.notice_title%}</a></th>
                          <th width="100">{%$value.department_name%}</th>
                          <th width="100">{%$value.create_time%}</th>
                            {%else%}
                            <th><a href="index.php?a=inform.dispensedetails&inform_id={%$value.inform_id%}" class="light" {%if $value.is_read ==0%}style="font-weight:bold"{%/if%}>{%$value.inform_title%}</a></th>
                            <th width="100">{%$value.department_name%}</th>
                            <th width="100">{%$value.create_time%}</th>
                            {%/if%}
                        </tr>
					{%/foreach%}          
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=notice.list" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_13">
                <table class="table">
					<!-- 提醒-->
					{%foreach from=$inform_lists key=key item=value%}
						{%if $value.notice_id%}
							<tr>
							  <th><a href="index.php?a=notice.list" class="light" {%if $value.is_show ==0%}style="font-weight:bold"{%/if%}>{%$value.notice_title%}</a></th>
							  <th width="100">{%$value.department_name%}</th>
							  <th width="100">{%$value.end_time%}</th>
							</tr>
						{%else%}
							<tr>
								<th><a href="index.php?a=inform.uplist&inform_type=1" class="light" {%if $value.is_show ==0%}style="font-weight:bold"{%/if%}>{%$value.inform_title%}</a></th>
								<th width="100">{%$value.department_name%}</th>
								<th width="100">{%$value.create_time%}</th>
							</tr>
						{%/if%}
					{%/foreach%}      
                  </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=notice.list" class="text-muted"  style="font-size:14px;">更多>></a></p>
                  </div>
                  <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_14">
                <table class="table">
					<!-- 内部邮件-->
					{%foreach from=$mail_lists key=key item=value%}
							<tr>
							  <th><a href="index.php?a=mail.info&mail_id={%$value.mail_id%}" class="light" {%if $value.is_read ==0%}style="font-weight:bold"{%/if%}>{%$value.mail_title%}</a></th>
							  <th width="100">{%$value.staff_name%}</th>
							  <th width="100">{%$value.create_time%}</th>
							</tr>
					{%/foreach%}        
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=mail.list" class="text-muted"  style="font-size:14px;">更多>></a></p>
                  </div>
              </div>
            <!-- /.tab-content -->
          </div>
         <!-- nav-tabs-custom -->
         <!--报修领用结束-->
		<!--周历表-->
		  <div class="nav-tabs-custom">
			<span class="glyphicon glyphicon-list-alt" style="float:left; font-size:18px; padding:12px 10px; color:#3c8dbc;" ></span>
            <ul class="nav nav-tabs">
              <li class="active"><a href="#tab_b" data-toggle="tab">全部   <span class="label label-warning"></span></a></li>
              <li><a href="#tab_4" data-toggle="tab">周工作   <span class="label label-success"></span></a></li>
              <li><a href="#tab_5" data-toggle="tab">日常工作   <span class="label label-primary"></span></a></li>
              <li><a href="#tab_6" data-toggle="tab">周历表   <span class="label label-info"></span></a></li>
            </ul>
            <div class="tab-content">
              <div class="tab-pane active" id="tab_b">
                   <table class="table">
				   <!-- 全部 第一行-->
                        <tr>
                          <th><a href="index.php?a=arrange.planlist&plan_week={%$plan_week.plan_week%}" class="light">学校{%$semester_data.semester_name%}第{%$plan_week.plan_week%}周工作安排</a></th>
                          <th width="100">{%$time%}</th>
                        </tr>
				  <!-- 全部 第二行-->
				  
					<tr>
					  <th><a href="index.php?a=arrange.semesterweeklist&semester_id={%$semester_data.semester_id%}" class="light">{%$semester_data.semester_name%}工作周历表</a></th>
					  <th width="100">{%$time%}</th>
					</tr>
			
				  <!-- 全部 第三行-->
				  {%foreach from=$work_three key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=arrange.hourdayinfo&arrange_id={%$value.arrange_id%}" class="light">{%$value.arrange_title%}</a></th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
				  {%/foreach%}
                       
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=arrange.hourdaylist" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <div class="tab-pane" id="tab_4">
			  <!-- 周工作 -->
                   <table class="table">
				   {%foreach from=$plan_lists key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=arrange.planlist&plan_week={%$value.plan_week%}" class="light">学校第{%$value.plan_week%}周工作安排</a></th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
					{%/foreach%}    
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=arrange.planlist" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_5">
                <table class="table">
				<!-- 日常工作 -->
				 {%foreach from=$arrange_lists key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=arrange.hourdaylist" class="light">{%$value.arrange_title%}</a></th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
				 {%/foreach%} 
                       
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=arrange.hourdaylist" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
              <div class="tab-pane" id="tab_6">
               <table class="table">
			   <!-- 周历表 -->
                     {%foreach from=$work_lists key=key item=value%}
                        <tr>
                          <th><a href="index.php?a=arrange.semesterweeklist" class="light">{%$value.semester_xname%}{%$value.semester_name%}工作周历表 </a></th>
                          <th width="100">{%$value.create_time%}</th>
                        </tr>
					 {%/foreach%}                         
                    </table>
                    <p class="text-right" style="margin-bottom:0px;"><a href="index.php?a=arrange.semesterweeklist" class="text-muted"  style="font-size:14px;">更多>></a></p>
              </div>
              <!-- /.tab-pane -->
            </div>
            <!-- /.tab-content -->
          </div>
        </section>
        <!--右侧部分结束 -->
      </div>
      <!-- /.row (main row) -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

     
{% include file="index.footer.tpl.php" %}
